﻿@model XSTDZ.ERP.Application.DataContracts.UserDto
@using XSTDZ.ERP.Infrastructure.Extentions
@{
    ViewBag.Title = " - 查看用户";
}
@section header{
     <link href="@Url.Content("~/Content/Controls.css")" rel="stylesheet" type="text/css" />
 <link href="@Url.Content("~/Content/Form.css")" rel="stylesheet" type="text/css" />
}

<h2>查看用户</h2>
<div class="wp100">

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <table class="formtable">
    <thead>
        <tr>
            <th colspan="4">@* <h2>新增入库单</h2>*@
            <div id="toptoolbar"></div>
            </th>
        </tr>
    </thead>
   <tr>
        <td class="title">@Html.LabelFor(model => model.AccountName)</td>
        <td>
            @Html.TextBoxFor(model => model.AccountName, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.AccountName)
        </td>

        <td class="title"> 
            @Html.LabelFor(model => model.Name)
        </td>
        <td>
            @Html.TextBoxFor(model => model.Name, new { @class = "text", value = DateTime.Now.ToString("yyyy-MM-dd") })
            @Html.ValidationMessageFor(model => model.Name)
        </td>
   </tr>
       
    <tr>
         <td class="title"> 
            @Html.LabelFor(model => model.Password)
        </td>
         <td>
            @Html.PasswordFor(model => model.Password, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.Password)
        </td>
        <td class="title"> 
            @Html.LabelFor(model => model.Gender)
        </td>
          <td> 
            @Html.RadioButtonList("Gender", ViewBag.Gender as IEnumerable<SelectListItem>)
        </td>
    </tr>

      <tr>
         <td class="title"> 
            @Html.LabelFor(model => model.Birthday)
        </td>
         <td>
            @Html.TextBoxFor(model => model.Birthday,new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.Birthday)
        </td>
          <td class="title"> 
            @Html.LabelFor(model => model.Address)
        </td>
           <td> 
            @Html.TextBoxFor(model => model.Address, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.Address)
        </td>
      </tr>
       
     <tr>
        <td class="title"> 
            @Html.LabelFor(model => model.Mobile)
         </td>
         <td>
            @Html.TextBoxFor(model => model.Mobile, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.Mobile)
        </td>
           <td class="title"> 
            @Html.LabelFor(model => model.Tel)
        </td>
           <td> 
            @Html.TextBoxFor(model => model.Tel, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.Tel)
        </td>
      </tr>

       <tr>
         <td class="title"> 
            @Html.LabelFor(model => model.PostNo)
        </td>
         <td> 
            @Html.TextBoxFor(model => model.PostNo, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.PostNo)
        </td>
           <td class="title"> 
            @Html.LabelFor(model => model.Email)
        </td>
           <td>
            @Html.TextBoxFor(model => model.Email, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.Email)
       </td>
      </tr>
    
     <tr>
         <td class="title"> 
            @Html.LabelFor(model => model.QQ)
        </td>
         <td>
            @Html.TextBoxFor(model => model.QQ, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.QQ)
        </td>
          <td class="title"> 
            @Html.LabelFor(model => model.MSN)
        </td>
           <td> 
            @Html.TextBoxFor(model => model.MSN, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.MSN)
        </td>
      </tr>

   <tr>
          <td class="title"> 
             @Html.LabelFor(model => model.DeptId)
        </td>
           <td>
           <input type="text" id="txtDeptName" name="txtDeptName" class="text" value="@Model.Dept.Name" />
           @Html.HiddenFor(model => model.DeptId)
          @*  @Html.TextBoxFor(model => model.DeptId, new  @class = "text none" })*@
            @Html.ValidationMessageFor(model => model.DeptId)
        </td>
         <td class="title"> 
            @Html.LabelFor(model => model.RoleIds)
        </td>
           <td>
           @* <input type="text"  id="RoleName" name="RoleName" class = "text" />*@
            @Html.TextBoxFor(model => model.RoleName, new { @class = "text disablebg", @readonly = "readonly" })
             @Html.HiddenFor(model => model.RoleIds)
              @Html.ValidationMessageFor(model => model.RoleIds)
        </td>
      </tr>    


       </table>
}

</div>

